// components/the-image/index.js
import { virtualHostConfig } from '@/behavior/virtualHost'
import { commonBehavior } from '@/behavior/common'

Component({
  ...virtualHostConfig({
    config: {
      options: { multipleSlots: true }
    },
    externalClasses: ['t-class', 't-class-load'],
    behaviors: [commonBehavior]
  }),

  /**
   * 组件的属性列表
   */
  properties: {
    src: String,
    width: {
      type: String,
      optionalTypes: [Number]
    },
    height: {
      type: String,
      optionalTypes: [Number]
    },
    mode: {
      type: String,
      value: "aspectFill"
    },
    shape: String,
    ariaLabel: String,
    lazy: Boolean,
    webp: Boolean,
    showMenuByLongpress: Boolean,
    loading: {
      type: String,
      value: 'default'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
